//数据模板定义规范DTD
let Mock = require('mockjs')
let data = Mock.mock({
	'list|5-10': [
		{
			'id|+1': 1,
			'name|1-3': '测试',
			'score|10-100': 0,
			'money|100-300.2-4': 0,
			'status|1-2': true,
			'detail|2-3': {id:1,name:'tom',age:23}
		}
	]
})
console.log(JSON.stringify(data,null,4))